<template>
  <div style="width: 100%;height:100%;background-color: #071239">
    <Header @menuSelect="menuSelect" :prjName="prjName"></Header>
    <component
     :is="selectMenu"
     :prj="prj"
     style="padding: 10px;height: 100%"
    ></component>
  </div>
</template>

<script>
import Header from "./Header.vue";
import sub_standard from "./sub_standard.vue";
import sub_dataview from "./sub_dataview.vue";
import sub_modelview from "./sub_modelview.vue"
import sub_standard_raw from "./sub_standard_raw.vue"
export default {
  components:{Header,sub_standard,sub_dataview,sub_modelview,sub_standard_raw},
  data () {
    return {
      selectMenu:"sub_standard",
      prj:"laoying",
      prjName:""
    }
  },
  created() {
    this.prj  = this.$route.query.prj;
    this.prjName  = this.$route.query.prjName;
  },
  mounted() {
  },
  methods:{
    menuSelect(menu){
      this.selectMenu = menu;
    }
  }
}
</script>

